home *** CD-ROM | disk | FTP | other *** search
- README for Symantec Visual Cafe PRO Version 1.0
- ================================================================
- Copyright (c) 1996 by Symantec Corporation. All Rights Reserved.
-
- NOTE:
- The Visual Cafe PRO consists of two products: the Visual Integrated
- Development Environment (e.g. Visual Cafe) with database aware
- functionality (components, wizards, interactions), and the
- dbANYWHERE workgroup server. This README file is explicitly for
- Visual Cafe PRO, and a separate one exists for dbANYWHERE.
-
- Table of Contents:
- I. Welcome
- II. Installation Notes
- III. User Tips
- IV. Known Problems-PRO Specific and Vendor Specific
- V. Contacting Symantec for Technical Support
- VI. Additional Information
-
-
- I. Welcome!
-
- Welcome to Symantec Visual Cafe PRO Version 1.0 for Windows 95
- and Windows NT. Please take a few minutes to read this file.
-
-
- II. Installation Notes
- ================================================================
- If you have previously downloaded the Preview Releases of Visual Cafe,
- you must remove them before installing Visual Cafe PRO 1.0.
-
- Run setup.exe. The installation is smooth and intuitive. As with
- any new software, please install Visual Cafe PRO in a clean directory.
-
- Installing Visual Cafe PRO with an Existing Version of Visual Cafe is
- possible. Just ensure that you do not install to the same directory.
-
- Installing and Running the Tutorial
- ---------------------------------------------------------------
- If you are new to Java development, please take the time to work
- through the exciting and informative tutorial that is part of
- Visual Cafe PRO. This tutorial will provide you with an overview
- of Visual Cafe PRO's most powerful features.
-
- What's in the Tutorial?
- ---------------------------------------------------------------
- In the Tutorial you will learn how to:
-
- * Design an applet, then build, and install it in a Web page.
- * Run the applet in a Web browser.
- * Design an application, then build, test, debug, and run it.
-
-
- III. User Tips
- ================================================================
- How do I configure my Web browser to run an applet I created
- using custom classes?
-
- When you are ready to view your applet outside of the Visual Cafe PRO
- environment, you need to make sure that the AppletViewer or your
- favorite WWW browser can find the custom classes included with
- Visual Cafe PRO. For local browsing, add the CLASSPATH environment
- variable to your autoexec.bat or system or config.sys file, such as:
-
- CLASSPATH=C:\visualcafepro\java\lib\symclass.zip;
-
- *
-
- How do I distribute my applet on a Web server?
-
- When placing the applet on a WWW server, contact your Webmaster and
- verify that the Symantec classes are available. If the classes are
- not available on your server, the Webmaster will need to add them or
- tell you how to add them. If you are the Webmaster, the classes in
- the symclass.zip file need to be in the server's classpath.
-
- A solution that works locally, or from a server, is to copy the
- \VisualCafe\Java\Lib\symantec directory and all of its contents to
- the directory containing the applet. (The subdirectories of the
- "symantec" directory contain the Visual Cafe PRO Java runtime classes.)
-
- Symantec has tested the deployment of Visual Cafe PRO generated Java
- applets in various browsers. There are several configuration issues
- concerning which Internet Browser you utilize for running Java applets.
- This involves the downloading of Java class files, packages, and TCP/IP
- connectivity. Please consult the User Guide regarding browsers before
- deploying your Java applets.
-
- Remember to compile your applet before deploying on a web site. Simply
- saving your applet after making changes will not cause those changes to
- take affect in the applet.
-
- *
-
- What is the "Execute applet in default HTML viewer" option in the
- Project Options dialog?
-
- The "Execute applet in default HTML viewer" option, located in
- the Project Options dialog box, allows you to view your applet
- in your favorite WWW browser, instead of the AppletViewer,
- when executing from the Visual Cafe PRO environment.
-
- *
-
- Will Visual Cafe PRO recognize my own source code?
-
- When adding controls directly within the source editor, it
- is recommended that you adhere to the same coding style as
- generated by Visual Cafe PRO.
-
- For example, if you are adding controls within Visual Cafe PRO's tags
- in the source editor, you should adhere to Visual Cafe PRO's coding
- style. Otherwise, you can add controls outside Visual Cafe PRO's tags
- using your own coding style.
-
- *
-
- What do I need to do to enable Remote Debugging?
-
- If you are using cafeRemote on a remote computer for remote debugging
- you must modify the autoexec.bat file on that machine. You must
- also include VisualCafe\java\bin your PATH, and create and set a
- CLASSPATH system variable to include all necessary classes for
- the Applet or Application you are debugging. Here is an example:
-
- set PATH=C:\VisualCafe\Java\Bin;%PATH%
- set CLASSPATH=C:\VisualCafe\Java\Lib;C:\VisualCafe\Java\Lib\SYMCLASS.ZIP;
- C:\VisualCafe\Java\Lib\VECCLASS.ZIP;C:\VisualCafe\Java\Lib\SYMANTEC.ZIP;
- C:\VisualCafe\Java\Lib\SYMANTEC.ZIP;C:\YOUR_CLASSES
-
- Note that a PATH or CLASSPATH statement in your system files
- is one continuous line with no spaces or carriage returns.
-
- *
-
- When running an applet in a browser, resizing the browser causes my
- database connection to be lost. What went wrong?
-
- One major issue facing Java applets running in typical Internet
- Browsers is browser resizing. Default logic seems to be the destroying
- and restarting of a Java applet upon ANY change to the size of the
- browser window. If a session.Close() is called when destroying the
- applet, the data connection is lost and must be re-established when the
- applet is restarted. The solution provided by default in Visual Cafe
- PRO is to maintain a persistent database connection. This means that
- any browser resizing will not lose the connection--a desirable trait.
- However, the drawback is that the connection will be maintained until
- the browser is closed. To accomodate this, you may want to provide a
- Close button on the applet that calls session.close().
-
-
- IV. Known Problems-PRO Specific and Vendor Specific
- ================================================================
- This section lists information on known problems with Visual Cafe PRO,
- and alternative actions that can be taken to avoid them.
-
- * If you encounter an error upon starting Visual Cafe PRO, try
- deleting the following files from \visualcafepro\bin:
- *.rps
- *.reg
- *.vws
-
- Note: Some of the errors are:
- "No starter templates could be found"
- "Cannot open local repository"
- "Cannot open registry"
-
- These files are platform-dependent and must be regenerated
- when switching from one OS to another.
-
- * Due to architectual changes within Visual Cafe PRO projects, we are
- not compatible with Visual Cafe Preview 1 or 2 .VPJ files. Also, it
- is not suggested that you mix projects between Visual Cafe and Visual
- Cafe PRO.
-
- * When using the Parse All Imports option, we recommend that you
- allow the parser to finish parsing before editing or changing
- a file. To view the status of the parser, select Messages
- from the Visual Cafe PRO Window menu.
-
- * The x and y dimension properties in the Property Inspector are
- not applicable for root level objects. No effect is achieved
- if you change these settings.
-
- * When building applets/applications for Microsoft Internet Explorer
- you should not use the project option for Java Optimization or the
- -O switch.
-
- * It is not possible to resize some of the dbAWARE objects, such as
- the Session, ConnectionInfo, and RelationView. Since these are not
- visible at runtime, there is no need to alter their appearance. It
- is also recommended that you do not Cut and Paste these objects.
-
- * When employing graphic images (binaries) in applets, sizes beyond 50k
- will show increasingly slow performance for this release. You are
- encouraged to try keeping them as small as possible for better
- performance.
-
- * Back Parsing
- 1. Visual Cafe PRO provides sophisticated editing abilities, where a
- change to an object in the Property List window will automatically
- generate the code change in the source, or an object added to the
- source will appear on the form and in the Project window. However,
- there have been some problems noted with this facility, where
- extensive changes to object names in the source will ocassionally
- cause invalid back parsing. It is suggested that changes be made
- through the Property List window as often as possible.
-
- 2. RadioButton and RadioBox objects do not successfully back parse.
-
- * Components
- 1. The Grid control is a very recent addition, and has not been
- tested to a high degree. There are painting and refreshing issues
- that will be addressed in the next release.
-
- 2. The KeyPressManagerPanel is inserted into dbAWARE Projects by
- default, because it facilitates tabbing between controls (something
- quite lacking from most Java applets today). However, there are some
- quirky behaviors to it that should be taken into account. If you
- attempt to add additional data aware controls by dragging columns
- from the dbNAVIGATOR onto your applet, nothing happens. If you drag
- the columns to the Project window and drop them on the KeyPressManager
- Panel object, they will all size to the dimensions of the Panel
- object. You will be forced to manually change the size of each
- control through the Property List window. For simplicity, make sure
- you include all of the desired columns, then optionally remove them
- later.
-
- * There are several layout options available for applets, which consist
- of BorderLayout, CardLayout, FlowLayout, GridBagLayout, and
- GridLayout. A bug exists where the selection of CardLayout will
- cause ALL of the objects in your applet to resize to the dimensions
- of the applet window. This option is selected by default, and will
- not cause a problem, unless you choose a different layout and then
- return to CardLayout. The only recourse after doing this is to
- manually alter the X,Y,Width, and Height parameters in the Property
- List for each object.
-
- * The HELP file mistakenly references TWO separate drivers for Oracle.
- In earlier versions of dbANYWHERE, there was a separate driver for
- Windows NT and Windows 95. For this release, the drivers have
- combined into one. Make sure you reference the driver as "ORACLE_7".
-
-
- Vendor Specific Problems:
- -------------------------
-
- * Microsoft Access
-
- There are some problems with using dbANYWHERE connections to
- Microsoft Access Jet Engine databases earlier than the 7.0 version
- on Windows NT 4.0, due to some Access problems. It is recommended
- that you download the free update available on the Microsoft web
- site. The file to get is msjt3032.dll which contains the following
- files: msjt3032.dll, mswng300.dll, msajetfs.dll, readme.txt, and
- 62317T.doc. For additional information about this update, see the
- following article in the Microsoft Knowledge Base: Article-ID:
- Q143163; TITLE: Problems Running Microsoft Jet 3.0 on Windows NT 4.
-
- * Microsoft Internet Explorer
-
- Microsoft's Internet Explorer was tested with running Java applets,
- but one of the more notable problems encountered concerned the use
- of the host name "localhost." This is a default TCP/IP entry
- (127.0.0.1) in your HOSTS or LMHOSTS file which allows you to
- reference the local machine running dbANYWHERE, instead of
- specifying an IP address. In some cases, Internet Explorer failed
- to resolve the "localhost" reference, requiring the use of the full
- IP addresss. You may find it best to use IP Addresses or registered
- Domain Names whenever possible.
-
- * Sybase SQL Anywhere 5.5
-
- There tends to be a large memory and/or resource leak with repeated
- connects and disconnects to SQL Anywhere 5.5 via ODBC. Each
- connect/disconnect consumes 50-100Kbytes of virtual memory that is
- not given back to the system until the client application terminates. This is
- under both Win95 and WinNT (3.51 & 4.0). Technical Support at Sybase
- confirmed this on high numbers of connect/disconnect sequences in
- 5.5.0. They also claim that it should be fixed in 5.5.01. There is
- an EBF file on their FTP/WEB Server that may or may not contain the
- fix.
-
- Note: In the documentation, the names Watcom and SQL Anywhere are
- used interchangeably, since Watcom is the original name of this
- database engine (prior to the Sybase acquisition).
-
-
- JDK Version Incompatibilities
- -----------------------------------------------------------------
- Symantec Visual Cafe PRO 1.0 supports version 1.0.2 of the Java
- Development Kit from Sun Microsystems. Also, the JDBC API included
- supports version 1.1 of the JDBC specification.
-
- Some behaviors of the java.awt components are not correct on the
- Microsoft Windows platforms.
-
- These platform-dependent problems include:
-
- * Buttons and labels do not support foreground or background colors.
- * Checkbox/radiobuttons don't support foreground color.
- * Lists size themselves to specific increments (to completely hold
- lines of text).
- * Dialog boxes do not initially return appropriate values from insets,
- placing the first component incorrectly in the Form Designer.
- * Help menus do not appear on the right side of the menu bar.
- * Choice and List components incorrectly display their size and
- position if not used in conjunction with a layout manager.
-
- Visual Cafe PRO issues a reshape after the component is added
- which addresses this problem. However, if you try to use
- decendents of these classes you will need to add a call to reshape
- after the component has been added. For example,
-
- //{{INIT_CONTROLS
- choice1 = new java.awt.Choice();
- choice1.reshape(119,72,135,21);
- add(choice1);
- //}}
-
- // Create the reshape call after the auto generated code
- choice1.reshape(119,72,135,21);
-
-
- These problems should be resolved with the 1.1 release of the JDK.
-
-
- JDBC Specification Problems
- -----------------------------------------------------------------
-
- * Stored Procedures
- The JDBC specification states the following format to be used
- for stored procedures:
-
- { call procedure_name [?,?,....] }
-
- where procedure_name - is the name of the procedure
- ?,?..... - are the placeholders to be used for parameters
- In the real world, the above doesn't work for all different drivers.
- So, remember these guidelines:
-
- a. Sybase SQL AnyWhere / Watcom
-
- ODBC drivers are supposed to support the above escape processing
- syntax for stored procedures. Unfortunately the Watcom ODBC driver
- doesn't support this. So, always use native calling syntax with
- Watcom, which is, "call procedure_name ( ?, ?, ? )".
-
- But if you were really brave and wanted to try using the ODBC
- standard, you would get an "Unable to prepare SQL Statement"
- exception or some other related message.
-
- b. All InterSolv ODBC Drivers
-
- These drivers do behave a little bit better than the Watcom driver.
- They let you to prepare the statement, but while executing the
- statement by executeUpdate(), execute() etc, sometimes strange
- errors are displayed. It may be prudent to utilize the dbANYWHERE
- direct drivers whenever possible.
-
- c. Native Sybase driver, Microsoft SQL Server driver.
-
- Should work fine without a problem.
-
- d. Native Oracle driver.
-
- Works fine but make sure to include an extra set of () around the
- placeholders. This requirement may be alleviated in future versions.
-
- { call procedure_name [(?,?,....)] }
- Note the () around placeholders
-
-
- * Date datatypes are restricted to the range 1970-01-01 to 1999-12-31.
- Attempts to retrieve data with dates outside this range will throw
- an exception that can, in some cases, be unrecoverable.
-
- * Excessively large datatypes that go beyond the definitions that
- JDBC can handle, will cause applets to hang when running. For
- example, if you are using Oracle and project a column of datatype
- NUMBER(38), the applet will hang when executing (no controls will
- appear). Make sure you do not violate the datatype limits of JDBC.
-
-
- Low-memory warning on startup
- -----------------------------------------------------------------
- If the sum of your system's available physical memory (RAM) and
- swap space on disk is below a minimal level when Visual
- Cafe PRO starts up, a warning dialog will notify you of this condition.
- We will advise you to increase swap space (see
- below). You have the option of ignoring this warning (answer
- "No" to the "Quit?" prompt), and proceeding to run Visual Cafe PRO.
- With light use, you may not experience any problems at all. But
- with typical use, at some time in the course of your Visual Cafe PRO
- session you may begin to see "low virtual memory" warnings from
- the operating system. Typical symptoms of running any complex
- application with too little available memory are sluggish
- performance and unstable system behavior.
-
- If the warning dialog recommends that you increase swap space by
- some small amount, such as 2 or 3 MB, please increase minimum
- swap space on Windows NT, or free disk space on Windows 95, by
- at least 5 MB.
-
- On Windows 95, if the option is selected in
- Settings | Control Panel | System | Performance | Virtual Memory
- to let the OS manage swap space (this is the default), then
- available swap space is simply the amount of free disk space;
- but note that there is no guaranteed minimum:
- the disk, there is no swap space available.
-
- On Windows NT 3.51, Control Panel is started from Program Manager;
- on Windows NT 4.0, Control Panel is started from the Settings
- menu item, as on Windows 95. The page file setting that matters
- most to an application on NT is the minimum page size setting.
- On a system with 32 MB RAM, the minimum swap space should be not
- less than 20 MB, and 32 MB is better. A reasonable setting for
- the maximum is at least twice the minimum.
-
- For further details about virtual memory, see the OS Help on the
- System dialog.
-
-
- V. Contacting Symantec for Technical Support
- ================================================================
-
- During the first 90 days of your purchase, you may call Technical
- support free of charge at (541) 465-8470.
-
- 1. Free and unlimited electronic support is available at
- http://www.symantec.com/techsupp/news/index.html,
-
- Support is also available on the usenet newsgroup
- comp.lang.java
-
- Send bug reports to bugs@symantec.com
-
- 2. If your User ID and Password become inoperative, please send
- e-mail notification to Customer Service at custserv@symantec.com
- with your name, address, daytime phone number, ID and password.
- Please type "Visual Cafe PRO" in the subject field. Expect a
- 24-48 hour turnaround.
-
- 3. If you have lost your Cafe ID set, please send notification to
- Customer Service at custserv@symantec.com. In the event that
- your information does not appear in our registration database,
- we will provide additional avenues for verification of ownership.
-
- 4. For CD purchases or damaged disks please call Customer Service
- at 800-441-7234.
-
-
- VI. Additional Information
- ================================================================
-
- Sybase SQL Anywhere 5.5
- -----------------------
- 1. Use of the Sybase SQL Anywhere Server and the Sybase SQL Anywhere
- Runtime Distributable Components requires the user to read the license
- information displayed in the Visual Cafe PRO installation screen and
- contained in the license files provided on disk (Sybase Runtime
- License and Sybase SQL Server License).
-
- 2. Only one copy of the SQL Anywhere Server may be used for development
- purposes and one copy of the SQL Anywhere Runtime Distributable
- Components may be used with Visual Cafe Pro. The Sybase Anywhere
- Server and the Sybase Anywhere Runtime Distributable Components may
- only be used in conjunction with dbANYWHERE Workgroup Server.
-
- 3. End user developers may not include dbANYWHERE Workgroup Server,
- Sybase SQL Anywhere Server or Sybase SQL Anywhere Runtime Distributable
- Components with their applications unless each copy of their application
- includes a fully licensed version of Visual Cafe Pro.
-
- 4. Sybase SQL Anywhere Server will be used for database application
- development. Any deployment of the database and application will require
- the use of the Sybase SQL Anywhere Runtime Distributable Components.
- The Sybase SQL Anywhere Server is not licensed for use in deployment
- situations.
-
- 5. Note that the included Sybase SQL Anywhere Runtime Distributable
- Components allow up to no more than 10 simultaneous connections.
-
- 6. Because this Software is a Symantec database development product,
- you have a right to host one version of the database components of
- the Software product on a different physical machine than the machine
- on which the development environment is used. Even though different
- components of the included Software Product may be hosted on separate
- physical machines, only one copy of each component may exist at one
- time. This applies to both development and runtime database engines
- provided with this Software product.
-
-
- Bundler Utility
- ---------------
- Due to a large number of requests late in the beta cycle of Visual
- Cafe PRO, we have included an early version of our Bundler utility
- that will allow you to easily figure out which class files are used
- by your applet (or application), and need to be uploaded to your
- web server. Once your Java app is ready, execute the following
- command at the command prompt (please make sure that
- \visualcafe\bin is in your path):
-
- Bundler.exe -make -cdb mainclass.cdb -depend listname.dep
- mainclass.java
-
- - where mainclass is the name of the main class Java file in your
- project
-
- - in this example, listname.dep is the file name where the list of
- classes used by your app will be generated. Please note that
- Bundler will also list the name of the zip file (if any) where the
- class file was found. This will allow you to know what class files
- you would need to unzip from each class zip file used by your app.
- Please note that in this version, the file listname.dep has to have
- a .dep extension. Please note also that while the java.* class files
- are logged in this file, you are not actually required to copy those
- to your web server, as they are usually available with most Internet
- browsers.
-
- Please also note that Bundler takes the same other command line
- options as the sj command line compiler, so you can add additional
- class paths, etc... if desired.
-
- *
-
- JDK 1.1 Support:
- -----------------------------------------------------------------
- We are planning to aggressively support JDK 1.1 as soon as available.
- Register on http://cafe.symantec.com and subscribe to the mailing
- list so you are notified on our support as we make progress with new
- and better versions of Visual Cafe PRO.
-
-